import{EditdiscussParams} from"../../types/parmas"
import { postSelectPicture} from "../../api/userinfo"
const picture = {
  state: {
    pictureInfo:{}
  },

  mutations: {
    //保存订单基本信息
    SET_PICTUREINFO(state: any, value: any) {
      state.pictureInfo = value;
    },
  },

  actions: {
    async SET_PICTUREINFO(content: any, mid:any) {
    return new Promise(async (resolve, reject)=>{
    await postSelectPicture({mid:mid}).then((res)=>{
        content.commit("SET_PICTUREINFO",res.data)
       })
    })
    },
}
}
export default picture;